----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  D:\Vicard\VV\re\inprogress\BRV\results\Table_A19.log
  log type:  text
 opened on:  29 Sep 2017, 21:34:41

. 
. use "$Output\dataset_brv_fe", clear

. global condition  "entry_ele!=1994 & entry_ele!=1995"

. tsset ijk year 
       panel variable:  ijk (unbalanced)
        time variable:  year, 1996 to 2005, but with gaps
                delta:  1 unit

. *
. foreach def in ele1 {
  2. drop diff_`def'_* diff_`def'
  3. gen diff_`def'                  = diff_hs4*age_`def'
  4. forvalues x = 1(1)10 {
  5.         g diff_`def'_`x'        = diff_hs4 * `def'_`x' 
  6.         
.         }
  7. *
. replace diff = diff_hs4
  8. foreach var in diff {
  9.         
.         eststo: reg dprior `var' age_`def'                         if $condition, r cluster(i)
 10.         eststo: reg dprior `var' age_`def' `var'_`def' if $condition, r cluster(i)
 11.         eststo: reg dprior `var' age_`def' `var'_`def' if $condition, vce(bootstrap) 
 12.         eststo: reg dprior `var'_`def'_* `def'_*           if $condition, r cluster(i)
 13.         
.         }
 14. }
(3,341,555 missing values generated)
(3,341,555 missing values generated)
(3,341,555 missing values generated)
(3,341,555 missing values generated)
(3,341,555 missing values generated)
(3,341,555 missing values generated)
(3,341,555 missing values generated)
(3,341,555 missing values generated)
(3,341,555 missing values generated)
(3,341,555 missing values generated)
(3,341,555 missing values generated)
(3,511,420 real changes made, 1,051 to missing)

Linear regression                               Number of obs     =  1,877,732
                                                F(2, 45800)       =    3585.05
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0408
                                                Root MSE          =     1.1717

                                 (Std. Err. adjusted for 45,801 clusters in i)
------------------------------------------------------------------------------
             |               Robust
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        diff |   .0726287   .0010264    70.76   0.000     .0706169    .0746405
    age_ele1 |  -.0323835   .0007126   -45.44   0.000    -.0337803   -.0309867
       _cons |   .1467424   .0025525    57.49   0.000     .1417395    .1517454
------------------------------------------------------------------------------
(est1 stored)

Linear regression                               Number of obs     =  1,877,732
                                                F(3, 45800)       =    2712.58
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0411
                                                Root MSE          =     1.1716

                                 (Std. Err. adjusted for 45,801 clusters in i)
------------------------------------------------------------------------------
             |               Robust
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        diff |   .0844673   .0013146    64.26   0.000     .0818908    .0870439
    age_ele1 |  -.0327938   .0006971   -47.04   0.000    -.0341602   -.0314275
   diff_ele1 |  -.0035996   .0003259   -11.04   0.000    -.0042384   -.0029607
       _cons |   .1477298   .0025229    58.55   0.000     .1427848    .1526748
------------------------------------------------------------------------------
(est2 stored)
(running regress on estimation sample)

Bootstrap replications (50)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50

Linear regression                               Number of obs     =  1,877,732
                                                Replications      =         50
                                                Wald chi2(3)      =   45576.91
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.0411
                                                Adj R-squared     =     0.0411
                                                Root MSE          =     1.1716

------------------------------------------------------------------------------
             |   Observed   Bootstrap                         Normal-based
      dprior |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        diff |   .0844673    .000978    86.36   0.000     .0825504    .0863843
    age_ele1 |  -.0327938   .0004437   -73.91   0.000    -.0336635   -.0319242
   diff_ele1 |  -.0035996     .00024   -15.00   0.000      -.00407   -.0031292
       _cons |   .1477298   .0016617    88.90   0.000     .1444729    .1509867
------------------------------------------------------------------------------
(est3 stored)
note: diff_ele1_1 omitted because of collinearity
note: ele1_1 omitted because of collinearity

Linear regression                               Number of obs     =  1,877,732
                                                F(10, 45800)      =          .
                                                Prob > F          =          .
                                                R-squared         =     0.0428
                                                Root MSE          =     1.1705

                                 (Std. Err. adjusted for 45,801 clusters in i)
------------------------------------------------------------------------------
             |               Robust
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
 diff_ele1_1 |          0  (omitted)
 diff_ele1_2 |   .0781008   .0010811    72.24   0.000     .0759818    .0802198
 diff_ele1_3 |   .0723679   .0011707    61.81   0.000     .0700733    .0746626
 diff_ele1_4 |   .0666278   .0015651    42.57   0.000     .0635602    .0696953
 diff_ele1_5 |   .0654981   .0019835    33.02   0.000     .0616105    .0693858
 diff_ele1_6 |   .0643011   .0021517    29.88   0.000     .0600838    .0685184
 diff_ele1_7 |   .0591959   .0023812    24.86   0.000     .0545287    .0638631
 diff_ele1_8 |   .0595962   .0029908    19.93   0.000     .0537341    .0654583
 diff_ele1_9 |   .0594913   .0041625    14.29   0.000     .0513328    .0676498
diff_ele1_10 |   .0571384   .0056905    10.04   0.000     .0459849    .0682919
      ele1_1 |          0  (omitted)
      ele1_2 |   .0679176   8.965725     0.01   0.994    -17.50504    17.64088
      ele1_3 |  -.0674567   9.630734    -0.01   0.994    -18.94385    18.80893
      ele1_4 |   -.089643   9.218629    -0.01   0.992     -18.1583    17.97902
      ele1_5 |  -.1020917   9.193442    -0.01   0.991    -18.12138     17.9172
      ele1_6 |  -.1032754   8.982951    -0.01   0.991       -17.71    17.50345
      ele1_7 |   -.100155   9.283381    -0.01   0.991    -18.29573    18.09542
      ele1_8 |  -.1050834   8.709916    -0.01   0.990    -17.17666    16.96649
      ele1_9 |  -.0914566   8.609507    -0.01   0.992    -16.96623    16.78331
     ele1_10 |  -.1144698   9.245845    -0.01   0.990    -18.23647    18.00753
       _cons |   .0569231   9.174505     0.01   0.995    -17.92525     18.0391
------------------------------------------------------------------------------
(est4 stored)

. 
. set linesize 250

. esttab, mtitles drop(_cons) b(%5.3f) se(%5.3f) compress r2 starlevels(c 0.1 b 0.05 a 0.01)  se 

------------------------------------------------------
                 (1)        (2)        (3)        (4) 
                est1       est2       est3       est4 
------------------------------------------------------
diff           0.073a     0.084a     0.084a           
             (0.001)    (0.001)    (0.001)            

age_ele1      -0.032a    -0.033a    -0.033a           
             (0.001)    (0.001)    (0.000)            

diff_ele1                -0.004a    -0.004a           
                        (0.000)    (0.000)            

diff_el~_1                                      0.000 
                                                  (.) 

diff_ele~2                                      0.078a
                                              (0.001) 

diff_ele~3                                      0.072a
                                              (0.001) 

diff_ele~4                                      0.067a
                                              (0.002) 

diff_ele~5                                      0.065a
                                              (0.002) 

diff_ele~6                                      0.064a
                                              (0.002) 

diff_ele~7                                      0.059a
                                              (0.002) 

diff_ele~8                                      0.060a
                                              (0.003) 

diff_ele~9                                      0.059a
                                              (0.004) 

diff_el~10                                      0.057a
                                              (0.006) 

ele1_1                                          0.000 
                                                  (.) 

ele1_2                                          0.068 
                                              (8.966) 

ele1_3                                         -0.067 
                                              (9.631) 

ele1_4                                         -0.090 
                                              (9.219) 

ele1_5                                         -0.102 
                                              (9.193) 

ele1_6                                         -0.103 
                                              (8.983) 

ele1_7                                         -0.100 
                                              (9.283) 

ele1_8                                         -0.105 
                                              (8.710) 

ele1_9                                         -0.091 
                                              (8.610) 

ele1_10                                        -0.114 
                                              (9.246) 
------------------------------------------------------
N            1877732    1877732    1877732    1877732 
R-sq           0.041      0.041      0.041      0.043 
------------------------------------------------------
Standard errors in parentheses
c p<0.1, b p<0.05, a p<0.01

. esttab, mtitles drop(_cons) b(%5.3f) se(%5.3f) r2  starlevels({$^c$} 0.1 {$^b$} 0.05 {$^a$} 0.01) se tex label  title() 

{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{4}{c}}
\hline\hline
                    &\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}&\multicolumn{1}{c}{(3)}&\multicolumn{1}{c}{(4)}\\
                    &\multicolumn{1}{c}{est1}&\multicolumn{1}{c}{est2}&\multicolumn{1}{c}{est3}&\multicolumn{1}{c}{est4}\\
\hline
$\widehat{a}\_{ijkt}-\varepsilon^q\_{ijk,t-1}$&       0.073{$^a$}&       0.084{$^a$}&       0.084{$^a$}&                  \\
                    &     (0.001)      &     (0.001)      &     (0.001)      &                  \\
[1em]
Age$ \_{ijkt}$       &      -0.032{$^a$}&      -0.033{$^a$}&      -0.033{$^a$}&                  \\
                    &     (0.001)      &     (0.001)      &     (0.000)      &                  \\
[1em]
diff\_ele1           &                  &      -0.004{$^a$}&      -0.004{$^a$}&                  \\
                    &                  &     (0.000)      &     (0.000)      &                  \\
[1em]
diff\_ele1\_1         &                  &                  &                  &       0.000      \\
                    &                  &                  &                  &         (.)      \\
[1em]
diff\_ele1\_2         &                  &                  &                  &       0.078{$^a$}\\
                    &                  &                  &                  &     (0.001)      \\
[1em]
diff\_ele1\_3         &                  &                  &                  &       0.072{$^a$}\\
                    &                  &                  &                  &     (0.001)      \\
[1em]
diff\_ele1\_4         &                  &                  &                  &       0.067{$^a$}\\
                    &                  &                  &                  &     (0.002)      \\
[1em]
diff\_ele1\_5         &                  &                  &                  &       0.065{$^a$}\\
                    &                  &                  &                  &     (0.002)      \\
[1em]
diff\_ele1\_6         &                  &                  &                  &       0.064{$^a$}\\
                    &                  &                  &                  &     (0.002)      \\
[1em]
diff\_ele1\_7         &                  &                  &                  &       0.059{$^a$}\\
                    &                  &                  &                  &     (0.002)      \\
[1em]
diff\_ele1\_8         &                  &                  &                  &       0.060{$^a$}\\
                    &                  &                  &                  &     (0.003)      \\
[1em]
diff\_ele1\_9         &                  &                  &                  &       0.059{$^a$}\\
                    &                  &                  &                  &     (0.004)      \\
[1em]
diff\_ele1\_10        &                  &                  &                  &       0.057{$^a$}\\
                    &                  &                  &                  &     (0.006)      \\
[1em]
Age dummy, 1 years  &                  &                  &                  &       0.000      \\
                    &                  &                  &                  &         (.)      \\
[1em]
Age dummy, 2 years  &                  &                  &                  &       0.068      \\
                    &                  &                  &                  &     (8.966)      \\
[1em]
Age dummy, 3 years  &                  &                  &                  &      -0.067      \\
                    &                  &                  &                  &     (9.631)      \\
[1em]
Age dummy, 4 years  &                  &                  &                  &      -0.090      \\
                    &                  &                  &                  &     (9.219)      \\
[1em]
Age dummy, 5 years  &                  &                  &                  &      -0.102      \\
                    &                  &                  &                  &     (9.193)      \\
[1em]
Age dummy, 6 years  &                  &                  &                  &      -0.103      \\
                    &                  &                  &                  &     (8.983)      \\
[1em]
Age dummy, 7 years  &                  &                  &                  &      -0.100      \\
                    &                  &                  &                  &     (9.283)      \\
[1em]
Age dummy, 8 years  &                  &                  &                  &      -0.105      \\
                    &                  &                  &                  &     (8.710)      \\
[1em]
Age dummy, 9 years  &                  &                  &                  &      -0.091      \\
                    &                  &                  &                  &     (8.610)      \\
[1em]
Age dummy, 10 years &                  &                  &                  &      -0.114      \\
                    &                  &                  &                  &     (9.246)      \\
\hline
Observations        &     1877732      &     1877732      &     1877732      &     1877732      \\
\(R^{2}\)           &       0.041      &       0.041      &       0.041      &       0.043      \\
\hline\hline
\multicolumn{5}{l}{\footnotesize Standard errors in parentheses}\\
\multicolumn{5}{l}{\footnotesize {$^c$} p<0.1, {$^b$} p<0.05, {$^a$} p<0.01}\\
\end{tabular}
}

. eststo clear

. 
. log close
      name:  <unnamed>
       log:  D:\Vicard\VV\re\inprogress\BRV\results\Table_A19.log
  log type:  text
 closed on:  29 Sep 2017, 21:39:23
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
